export const rules = {
  num: [
    {
      required: true,
      message: '必须填写手机号',
      trigger: 'blur'
    },
    {
      pattern:
        /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,
      message: '请填写正确的手机号码',
      trigger: 'blur'
    }
  ],
  code: [
    {
      required: true,
      message: '必须填写验证码',
      trigger: 'blur'
    },
    {
      pattern: /^1[3|4|5|7|8][0-9]{9}$/,
      message: '请填写正确的验证码',
      trigger: 'blur'
    }
  ]
}
